<?php
	session_start();
	setcookie("PHPSESSID", session_id(), time()-42000, "/", $_SERVER['SERVER_NAME'], false);
	setcookie("cmix", session_id(), time()-42000, "/", "cmix.com", true);
	setcookie("login", $_SESSION['login'], time()-42000, "/", "cmix.com", true);
	setcookie("trusted", true, time()-42000, "/", "cmix.com", true); 
	
	session_unset();
	session_destroy();
	
	header("Location: ".$_SERVER['plateforme']."/secure/logout.php");//a commenter
?>